import request from "@/request/common";
// 获取设备配置
export const getDeviceInfo = (params) => {
	return request({
		url: '/api/v2.0/GetOrganization',
		data: {
			"Body": {
				"TerminalID": params.sn||'XH-TEST',
				"OrganizationPCMAC": "",
				"OrganizationCode": ""
			},
			"MACHINEID": "",
			"ZDYQBH": ""
		},
	})
}


//查询机器保修时间
export const getDeviceRenewalRecord = (params) => {
	return request({
		url: '/api/v2.0/GetDeviceRenewalRecord',
		data: {
			"Body": {
				"TerminalID": params.sn||'XH-TEST',
				"OrganizationPCMAC": "",
				"OrganizationCode": ""
			},
			"MACHINEID": params.sn||'XH-TEST',
			"ZDYQBH": ""
		},
		loading: false,
	}).catch(() => {})
}